package com.cwd.arm.infrastructure.query;

import com.cwd.arm.common.query.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * Created by yan on 21-12-10.
 */
@Data
public class TaxDaoQuery extends PageQuery {

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty(value = "收款节点id")
    private Long receiveNodeId;

    @Override
    public String getSortColumn() {
        if(StringUtils.isEmpty(sortField)){
            return "tax_date";
        }
        return super.getSortColumn();
    }
}
